package com.example.dish.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dish_model.dto.DishDTO;
import com.example.dish_model.entity.Dish;

import java.util.List;

/**
 * <p>
 * 菜品管理 服务类
 * </p>
 *
 * @author sjz
 * @since 2024-06-30
 */
public interface DishService extends IService<Dish> {

    void saveDishAndFlavors(DishDTO dishDTO);

    DishDTO getDishAndFlavorsById(String id);

    void updateDishAndFlavors(DishDTO dishDTO);

    List<Dish> getByIds(List<String> ids);

    String removeDish(List<String> ids);

    Page<DishDTO> getPage(long page, long pageSize, String name);
}
